import request from '@/utils/request'

// 查询成本预算列表
export function listDealCostBudget(query) {
  return request({
    url: '/costBudget/dealCostBudget/list',
    method: 'get',
    params: query
  })
}
// 查询成本预算树状结构
export function listTreeInDealCostBudget(query) {
  return request({
    url: '/costBudget/dealCostBudget/listTreeInDealCostBudget',
    method: 'get',
    params: query
  })
}

// 查询成本预算详细
export function getDealCostBudget(id) {
  return request({
    url: '/costBudget/dealCostBudget/' + id,
    method: 'get'
  })
}

// 保存成本预算
export function saveDealCostBudget(data) {
  return request({
    url: '/costBudget/dealCostBudget/save',
    method: 'post',
    data: data
  })
}

// 删除成本预算
export function delDealCostBudget(id) {
  return request({
    url: '/costBudget/dealCostBudget/' + id,
    method: 'delete'
  })
}

// 导出成本预算
export function exportDealCostBudget(query) {
  return request({
    url: '/costBudget/dealCostBudget/export',
    method: 'get',
    params: query
  })
}
